/*
 * @Author: jiaqiang.li
 * @Date: 2022-06-21 13:39:30
 * @LastEditTime: 2022-06-21 15:14:49
 * @Description: file content
 */
#ifndef SS_TASK_BASE_H
#define SS_TASK_BASE_H
#ifdef __cplusplus
extern "C" {
#endif  // DEBUG

#include "FreeRTOS.h"
#include "cmsis_os.h"


typedef struct {
    uint8_t type;
    uint16_t length;
    uint8_t data[32];
} ssMsg_t;

typedef enum {
    SS_MSG_UART4_RECV,
		SS_MSG_CHRIPS_ENOUGH,
} SS_MsgType_t;

_Bool SS_MsgPut(SS_MsgType_t type, void *data, uint32_t len);
void base_task_init(void);
void get_task_state(int32_t argc,void *cmd_arg);
int32_t ss_Find(uint8_t *s1, const uint8_t *s2, uint16_t len);

#ifdef __cplusplus
}
#endif  // DEBUG
#endif  // SS_TASK_H